home *** CD-ROM | disk | FTP | other *** search
- this.nMatch = 0;
- _root.arrInitMatch = new Array();
- this.arrNumber = new Array();
- this.arrAnimal = new Array();
- if(_root.isBonus == 1)
- {
- _root.isBonus = 0;
- _root.arrM[_root.strClick2.substr(0,1)][_root.strClick2.substr(1,1)] = eval("_root.mcB.mcM" + _root.strClick2).nType = eval("_root.mcB.mcM" + _root.strClick2 + ".mcM")._currentframe + 1;
- a = 0;
- while(a <= 7)
- {
- b = 0;
- while(b <= 7)
- {
- if(_root.arrM[a][b] == eval("_root.mcB.mcM" + _root.strClick2).nType)
- {
- _root.arrInitMatch[this.nMatch] = String(a) + String(b);
- this.nMatch = this.nMatch + 1;
- }
- b++;
- }
- a++;
- }
- }
- this.nMatch = 0;
- d = 0;
- while(d < _root.arrInitMatch.length)
- {
- isCheck = 1;
- if(this.nMatch >= 1)
- {
- c = 0;
- while(c < this.nMatch)
- {
- if(this.arrNumber[c] == _root.arrInitMatch[d])
- {
- isCheck = 0;
- }
- c++;
- }
- }
- if(isCheck)
- {
- this.arrNumber[this.nMatch] = _root.arrInitMatch[d];
- this.nDeleteAnimal = eval("_root.mcB.mcM" + this.arrNumber[this.nMatch])._currentframe - 1;
- if(this.nDeleteAnimal == 1)
- {
- _root.mcP.nA1 = _root.mcP.nA1 + 1;
- }
- else if(this.nDeleteAnimal == 2)
- {
- _root.mcP.nA2 = _root.mcP.nA2 + 1;
- }
- else if(this.nDeleteAnimal == 3)
- {
- _root.mcP.nA3 = _root.mcP.nA3 + 1;
- }
- else if(this.nDeleteAnimal == 4)
- {
- _root.mcP.nA4 = _root.mcP.nA4 + 1;
- }
- else if(this.nDeleteAnimal == 5)
- {
- _root.mcP.nA5 = _root.mcP.nA5 + 1;
- }
- else if(this.nDeleteAnimal == 6)
- {
- _root.mcP.nA6 = _root.mcP.nA6 + 1;
- }
- else if(this.nDeleteAnimal == 7)
- {
- _root.mcP.nA7 = _root.mcP.nA7 + 1;
- }
- this.arrAnimal[this.nMatch] = this.nDeleteAnimal;
- this.nMatch = this.nMatch + 1;
- }
- d++;
- }
- if(this.arrNumber.length)
- {
- if(this.arrNumber.length == 3)
- {
- _root.Score += 10;
- }
- else if(this.arrNumber.length == 4)
- {
- _root.Score += 20;
- }
- else if(this.arrNumber.length == 5)
- {
- _root.Score += 30;
- }
- else
- {
- _root.Score += 40;
- }
- }
- _root.mcAC3.gotoAndPlay("flC");
-